package com.moba.service;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.moba.mapper.BaseFilesMapper;
import com.moba.domain.BaseFiles;


/**
 * @author liu, jia
 * @version 2019-10-06 17:00
 * @date 2019-10-06 17:00
 */
@Service
@Transactional
public class BaseFilesService{

	@Resource
	private BaseFilesMapper baseFilesMapper;
	
	public BaseFiles getEntity(BaseFiles t) {
		return this.baseFilesMapper.selectEntity(t);
	}

	public Integer getEntityCount(BaseFiles t) {
		return this.baseFilesMapper.selectEntityCount(t);
	}

	public List<BaseFiles> getEntityList(BaseFiles t) {
		return this.baseFilesMapper.selectEntityList(t);
	}

	public Integer createEntity(BaseFiles t) {
        this.baseFilesMapper.insertEntity(t);
		return t.getId();
	}

	public int updateEntity(BaseFiles t) {
		return this.baseFilesMapper.updateEntity(t);
	}
	
	public int removeEntity(BaseFiles t) {
		return this.baseFilesMapper.deleteEntity(t);
	}

	public List<BaseFiles> getEntityPaginatedList(BaseFiles t) {
		return this.baseFilesMapper.selectEntityPaginatedList(t);
	}

}
